package main

import (
	"gogogo-server/engine/log"
	"gogogo-server/engine/utils"
	"gogogo-server/loginserver/global"
	"gogogo-server/loginserver/mgrs"
	"gogogo-server/loginserver/webs"
	"os"
)

func main() {
	if err := utils.ParseYaml("config/login.yaml", &global.GGG_LOGIN_CONFIG); err != nil {
		os.Exit(1)
	}
	if !log.InitLogger(&global.GGG_LOGIN_CONFIG.ZapLog) {
		os.Exit(1)
	}
	mgrs.InitLoginManager()
	webs.InitWebService()
}
